package com.hm.ibsm.domain.mg;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.hm.common.def.ActivateDef;
import com.hm.ibsm.util.BaseDomain;
import com.hm.ibsm.util.R;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author shishun.wang
 * @date 2017年2月10日 下午12:09:02
 * @version 1.0
 * @describe
 */
@Setter
@Getter
@ToString
@Entity
@Table(name = R.DB.PREFIX + "ROLE_MENU")
public class RoleMenuDomain extends BaseDomain {

	private static final long serialVersionUID = -6303544889663894231L;

	@Column(nullable = false, name = "role_id")
	private String roleId;

	@Column(nullable = false, name = "menu_id")
	private String menuId;

	@Enumerated(EnumType.STRING)
	private ActivateDef activate = ActivateDef.DISABLE;

}
